import Vue from 'vue';
import App from '@/App';
import store from '@/store';
import '../static/weui/weui.css';

Vue.config.productionTip = false;
App.store = store;
App.mpType = 'app';

const app = new Vue(App);
app.$mount();

export default {
  // 这个字段走 app.json
  config: {
    pages: [],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '#fff',
      navigationBarTitleText: 'WeChat',
      navigationBarTextStyle: 'black'
    },
    tabBar: {
      color: '#727272',
      selectedColor: '#f56c02',
      backgroundColor: '#fff',
      list: [
        {
          pagePath: 'pages/home',
          text: '首页',
          iconPath: './static/images/tabbar/tab01.png',
          selectedIconPath: './static/images/tabbar/tab_sele_01.png'
        },
        {
          pagePath: 'pages/category',
          text: '分类',
          iconPath: './static/images/tabbar/tab02.png',
          selectedIconPath: './static/images/tabbar/tab_sele_02.png'
        },
        // {
        //   pagePath: 'pages/wxsearch',
        //   text: '发现',
        //   iconPath: './static/images/tabbar/tab05.png',
        //   selectedIconPath: './static/images/tabbar/tab05.png'
        // },
        {
          pagePath: 'pages/shopcart',
          text: '购物车',
          iconPath: './static/images/tabbar/tab03.png',
          selectedIconPath: './static/images/tabbar/tab_sele_03.png'
        },
        {
          pagePath: 'pages/member',
          text: '我的',
          iconPath: './static/images/tabbar/tab04.png',
          selectedIconPath: './static/images/tabbar/tab_sele_04.png'
        }
      ]
    }
  }
};
